<?php
namespace app\index\controller;

class Index extends Base
{
    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        return $this->label_fetch('index/index');
    }

    public function test()
    {
        $bucket = 'slagga';
        $object = '18272932930.png';
        $content = file_get_contents('http://www.thinkphp.cn/Public/new/img/header_logo.png');
        echo uploadFile($bucket, $object, $content);
    }

}
